package com.boot.feign;

import com.boot.result.Result;
import com.boot.user.dto.DeduceDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "cloud-user")
public interface UserFeign {
    @GetMapping("/user/{id}")
    Result getUserById(@PathVariable Long id);

    @PostMapping("/user/deduce")
    Result deduce(@RequestBody DeduceDTO deduceDTO);
}
